package com.xdap.keymen.controller.punch;

import com.xdap.keymen.service.punch.PunchMallOrderService;
import com.xdap.motor.annotation.RestWrapper;
import com.xdap.motor.vo.ResponseVo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/custom/punch/mall")
@RequiredArgsConstructor
@Slf4j
public class PunchMallOrderController {
    private final PunchMallOrderService punchMallOrderService;

    @GetMapping("/order/list")
    @RestWrapper
    public ResponseVo getOrderList(String rv) {
        return punchMallOrderService.getMallOrderList(rv);
    }


    @GetMapping("/orderItem/list")
    @RestWrapper
    public ResponseVo getOrderItemList(String rv) {
        return punchMallOrderService.getMallOrderItemList(rv);
    }

}
